(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/order/list" ], {
    "1c8a": function(t, e, o) {
        (function(t) {
            o("767a"), n(o("66fd"));
            var e = n(o("3437"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = o, t(e.default);
        }).call(this, o("543d").createPage);
    },
    3437: function(t, e, n) {
        n.r(e);
        var o, r = n("c729"), i = n("45c5");
        for (o in i) "default" !== o && function(t) {
            n.d(e, t, function() {
                return i[t];
            });
        }(o);
        n("c8ba2");
        var s = n("f0c5"), r = Object(s.a)(i.default, r.b, r.c, !1, null, null, null, !1, r.a, void 0);
        e.default = r.exports;
    },
    "45c5": function(t, e, n) {
        n.r(e);
        var o, r = n("7481"), i = n.n(r);
        for (o in r) "default" !== o && function(t) {
            n.d(e, t, function() {
                return r[t];
            });
        }(o);
        e.default = i.a;
    },
    "59ca": function(t, e, n) {},
    7481: function(t, n, o) {
        (function(t) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var e = {
                components: {
                    shoproMiniCard: function() {
                        o.e("components/shopro-mini-card/shopro-mini-card").then(function() {
                            return resolve(o("e6d5"));
                        }.bind(null, o)).catch(o.oe);
                    }
                },
                data: function() {
                    return {
                        routerTo: this.$Router,
                        isLoading: !0,
                        status: 0,
                        orderType: "goods",
                        orderList: [],
                        emptyData: {
                            img: "/static/imgs/empty/empty_groupon.png",
                            tip: "暂无商品，还有更多好货等着你噢~"
                        },
                        orderState: [ {
                            id: 0,
                            title: "全部",
                            type: "all"
                        }, {
                            id: 1,
                            title: "待付款",
                            type: "nopay"
                        }, {
                            id: 2,
                            title: "待发货",
                            type: "nosend"
                        }, {
                            id: 3,
                            title: "待收货",
                            type: "noget"
                        }, {
                            id: 4,
                            title: "已完成",
                            type: "finish"
                        }, {
                            id: 5,
                            title: "退换货",
                            type: "aftersale"
                        } ]
                    };
                },
                computed: {},
                onLoad: function() {
                    this.$Route.query.type && (this.status = this.$Route.query.type, console.info(this.status));
                },
                onShow: function() {
                    this.init();
                },
                methods: {
                    init: function() {
                        return Promise.all([ this.getOrderList() ]);
                    },
                    jump: function(t, e) {
                        this.$Router.push({
                            path: t,
                            query: e
                        });
                    },
                    onNav: function(t) {
                        this.status = t, this.getOrderList();
                    },
                    getOrderList: function() {
                        var e = this;
                        e.isLoading = !0, e.$api("order.order_list", {
                            status: e.status
                        }).then(function(t) {
                            0 === t.errno && (e.isLoading = !1, e.orderList = t.data.list);
                        });
                    },
                    onConfirm: function(e) {
                        var n = this;
                        t.showModal({
                            title: "提示",
                            content: "确定已经收到货了吗？",
                            success: function(t) {
                                t.confirm ? n.$api("order.confirm_get", {
                                    id: e
                                }).then(function(t) {
                                    0 === t.errno && n.getOrderList();
                                }) : t.cancel;
                            }
                        });
                    },
                    onRefund: function(t, e) {
                        var n = this, o = this;
                        o.$api("order.refund", {
                            id: t,
                            order_item_id: e
                        }).then(function(t) {
                            1 === t.errno && (o.$tools.toast("申请退款成功"), o.getOrderList(), n.$store.dispatch("getMessageIds", "aftersale"));
                        });
                    },
                    onAftersale: function(t, e) {
                        var n = this;
                        n.$api("order.aftersale", {
                            id: t,
                            order_item_id: e
                        }).then(function(t) {
                            1 === t.errno && (n.$tools.toast("申请售后成功"), n.getOrderList());
                        });
                    },
                    onCancel: function(t) {
                        console.info(t);
                        var e = this;
                        e.$api("order.order_cancel", {
                            id: t
                        }).then(function(t) {
                            console.info(t), 0 === t.errno && e.getOrderList();
                        });
                    },
                    onPay: function(t) {
                        this.$Router.replace({
                            path: "/pages/order/payment/method",
                            query: {
                                order_no: t,
                                type: "",
                                pay: 1,
                                orderType: this.orderType
                            }
                        });
                    },
                    onComment: function(t) {
                        this.$Router.push({
                            path: "/pages/order/add-comment",
                            query: {
                                order_id: t
                            }
                        });
                    },
                    checkExpress: function(t) {
                        this.$Router.push({
                            path: "/pages/order/express",
                            query: {
                                order_id: t
                            }
                        });
                    }
                }
            };
            n.default = e;
        }).call(this, o("543d").default);
    },
    c729: function(t, e, n) {
        n.d(e, "b", function() {
            return r;
        }), n.d(e, "c", function() {
            return i;
        }), n.d(e, "a", function() {
            return o;
        });
        var o = {
            shoproMiniCard: function() {
                return n.e("components/shopro-mini-card/shopro-mini-card").then(n.bind(null, "e6d5"));
            },
            shoproEmpty: function() {
                return n.e("components/shopro-empty/shopro-empty").then(n.bind(null, "69d8"));
            }
        }, r = function() {
            this.$createElement;
            this._self._c;
        }, i = [];
    },
    c8ba2: function(t, e, n) {
        var o = n("59ca");
        n.n(o).a;
    }
}, [ [ "1c8a", "common/runtime", "common/vendor" ] ] ]);